package com.yanmaohu.yulia.bean;

public final class NameExternalRoutineName implements AlterRoutineCharacteristic {

    private int beginIndex;
    private int endIndex;
    private ExternalRoutineName externalRoutineName;

    public NameExternalRoutineName(int beginIndex, ExternalRoutineName externalRoutineName) {
        this.beginIndex = beginIndex;
        this.endIndex = externalRoutineName.getEndIndex();
        this.externalRoutineName = externalRoutineName;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ExternalRoutineName getExternalRoutineName() {
        return externalRoutineName;
    }

}
